﻿#ifndef IW_ADDITEM_H
#define IW_ADDITEM_H

#include <head/g_pch.h>
#include <head/db_helper.h>
#include <head/m_message.h>
#include "m_fhs.h"

namespace Ui {
class IW_AddItem;
}

class IW_AddItem : public QDialog
{
    Q_OBJECT

public:
    explicit IW_AddItem(QWidget *parent,
                        const QString &table_,
                        const QString &category_);
    ~IW_AddItem();

    bool addItem(const QString &detail,
                 const QString &addition);

private slots:
    void on_btn_submit_clicked();

private:
    Ui::IW_AddItem *ui;

    QString table;
    QString category;
};

#endif // IW_ADDITEM_H
